
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerOral}[03/03/2010, v1]

%------- THEME DE DEPART -----------------------

%\usetheme{Luebeck}
%\usetheme{Antibes}
\usetheme{Warsaw}

%---------- COULEUR --------------------------

%\usecolortheme[RGB={114,25,0}]{structure} % Rouge EP
%\usecolortheme[RGB={34,139,34}]{structure}
%\usecolortheme[named=OliveGreen]{structure}
%\usecolortheme[named=BurntOrange]{structure}
\usecolortheme[named=Sepia]{structure}

%---------- DIVERS BEAMER SIMPLE -------------

\setbeamertemplate{navigation symbols}{}
%\setbeamertemplate{title page}[default][colsep=-4bp,rounded=true,shadow=true]
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{itemize subitem}{--}


\AtBeginSection[]
{
  \begin{frame}%Plan auto
    \frametitle{Plan reminder}
    \tableofcontents[currentsection,hideothersubsections]
  \end{frame}
}


%----------- DIVERS BEAMER BOURRIN -------------


\def\misc{\@dblarg\beamer@misc}
\long\def\beamer@misc[#1]#2{%
  \def\insertmisc{\def\inst{\beamer@insttitle}\def\and{\beamer@andtitle%
  }#2}%
}


\setbeamertemplate{footline}
{%
  \leavevmode%
  \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertmisc \hspace{\fill}\insertframenumber{}/\inserttotalframenumber
  \end{beamercolorbox}}%
  \vskip0pt%
}

\makeatletter


\setbeamertemplate{title page}
{%
  \vbox{}
  \vfill
  \begin{centering}
%Bloc de titre
    \begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=true]{title}
      \usebeamerfont{title}\inserttitle\par%
      \ifx\insertsubtitle\@empty%
      \else%
        \vskip0.25em%
        {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
      \fi%     
    \end{beamercolorbox}%
%Auteurs
    \vskip1em\par
    \begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=true]{author}
      \usebeamerfont{author}\insertauthor
    \end{beamercolorbox}
%Divers
    \vskip0.5em\par
    \begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=true]{misc}
      \footnotesize \insertmisc
    \end{beamercolorbox}
%Etablissement
    \begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=true]{institute}
      \usebeamerfont{institute}\insertinstitute
    \end{beamercolorbox}
%Date
    \begin{beamercolorbox}[sep=8pt,center,colsep=-4bp,rounded=true,shadow=true]{date}
      \usebeamerfont{date}\insertdate
    \end{beamercolorbox}\vskip0.5em
    {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
  \end{centering}
  \vfill
}

\makeatother

\newcommand{\fleche}{$\rightarrow$~}

\endinput